﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/ConsumerMaster.master" CodeFile="samedish.aspx.cs" Inherits="Public_Samedish" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Consumer_ContentPlaceHolder" Runat="Server">
<div style="width:100%; background-color:#aaaadd; text-align:center;">
    <asp:Label ID="info_label" runat="server" Font-Bold="true" Font-Size="medium" Text="比较选择"></asp:Label>
</div>
<div style="vertical-align:top; height:100%; text-align:center; overflow:auto;width:100%;">
<asp:DataGrid id="samedish_datagrid" runat="server" SelectedItemStyle-BackColor="#99ccff"
PagerStyle-Visible="False" PageSize="20" ItemStyle-CssClass="tableItem" HeaderStyle-CssClass="tableHeader"
 HeaderStyle-BackColor="#aaaadd" BorderColor="black" BackColor="AntiqueWhite"
AutoGenerateColumns="False" ShowHeader="True">

<Columns>
<asp:templatecolumn headertext="序号" ItemStyle-Width="30px" >
<itemtemplate>
<%# Container.ItemIndex+1 %>
</itemtemplate>
</asp:templatecolumn>           
<asp:boundcolumn ItemStyle-Width="150px" runat="server"
DataField="dish_name" HeaderText="菜 名" >
</asp:boundcolumn>
<asp:boundcolumn ItemStyle-Width="30px" runat="server"
DataField="categorydish_price" HeaderText="价格" >
</asp:boundcolumn>
<asp:templatecolumn headertext="餐厅" ItemStyle-Width="122px" ItemStyle-Font-Size="Medium">
<itemtemplate>
<asp:HyperLink  runat="server" Text='<%#Eval("restaurant_name")%>'
 navigateurl='<%#"~/public/restaurant-restaurant_id="+Eval("restaurant_id")+".aspx"%>'>
 </asp:HyperLink>
 </itemtemplate>
 </asp:templatecolumn>   
<asp:boundcolumn ItemStyle-Width="100px" runat="server"
DataField="restaurant_tel" HeaderText="餐厅电话" >
</asp:boundcolumn>
<asp:boundcolumn ItemStyle-Width="100px" runat="server"
DataField="restaurant_mobile" HeaderText="移动电话" >
</asp:boundcolumn>
<asp:boundcolumn ItemStyle-Width="30px" runat="server"
DataField="categorydish_score" HeaderText="评价" >
</asp:boundcolumn>
<asp:boundcolumn ItemStyle-Width="100px" runat="server"
DataField="district_name" HeaderText="区域" >
</asp:boundcolumn>
<asp:boundcolumn ItemStyle-Width="190px" runat="server"
DataField="restaurant_address" HeaderText="地址" >
</asp:boundcolumn>
</Columns>
</asp:DataGrid>
</div> 
</asp:Content>

